<template>
	<view>
		<uv-navbar title="登录" @leftClick="leftClick"></uv-navbar>
	</view>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="tx1">中国移动认证</text>
			<text class="tel">152****9999</text>
		</view>
		<view class="btn">
			<button @click="login"><text>本机号码一键登录</text></button>
		</view>
		<view class="term" @click="toggleCheck">
			<label class="radio">
				<radio value="r1" :checked="checked" />
				<text>同意《中国移动认证服务条款》《用户协议》</text>
			</label>
		</view>
		<view class="bottom">
			<uv-icon size="32" color="#50b674" name="weixin-circle-fill"></uv-icon>
			<uv-icon @click="navigateToTelView" size="32" color="#FFF" name="phone" class="phone"></uv-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked: false
			}
		},
		onLoad() {

		},
		methods: {
			leftClick() {
				console.log('leftClick');
			},
			toggleCheck() {
				this.checked = !this.checked
			},
			navigateToTelView() {
				uni.navigateTo({
					url: '/pages/login/telLoginView'
				});
			},
			login(){
				uni.switchTab({
					url: '/pages/bookcity/selectedView'
				});
			}
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
	}

	.tx1 {
		font-size: 15px;
		color: #333333;
	}

	.tel {
		font-size: 22px;
		color: #333333;
	}

	.btn {
		padding-top: 20px;
	}

	.btn button {
		width: 300px;
		height: 47px;
		font-size: 14px;
		border-radius: 39px;
		background-color: #F59A23;
	}

	.btn text {
		color: #FFFFFF;
		line-height: 47px;
	}

	.term {
		padding-top: 20px;
	}

	.term text {
		color: #F59A23;
	}

	.bottom {
		width: 100%;
		display: flex;
		justify-content: space-evenly;
		bottom: 60px;
		position: absolute;
	}

	.bottom .phone {
		background-color: #bf67e8;
		border-radius: 50%;
	}
</style>